package com.method;

/*
要写注释哦!!!
*/
public class Demo08 {
    public static void main(String[] args) {
       int resout= max(3, 6, 9);
        System.out.println(resout);
    }

    public static int max(int a, int b, int c) {
        if (a > b) {
            if (a > c) {
                return a;
            } else {
                return c;
            }
        } else {
            if (b < c) {
                return c;
            } else {
                return b;
            }
        }
    }
}
